package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author gxt
 * @since 2024-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Movie对象", description="")
public class Movie extends Model<Movie> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "movie_id", type = IdType.AUTO)
    private Integer movieId;

    private String movieName;

    private String movieDirector;

    private String movieType;

    private String movieNation;

    private String movieLanguage;

    private String movieRelease;

    private String movieCast;

    private String movieReview;

    private String moviePoster;

    public Movie(String movieName, String movieDirector, String movieType, String movieNation, String movieLanguage, String movieRelease, String movieCast, String movieReview, String moviePoster) {
        this.movieName = movieName;
        this.movieDirector = movieDirector;
        this.movieType = movieType;
        this.movieNation = movieNation;
        this.movieLanguage = movieLanguage;
        this.movieRelease = movieRelease;
        this.movieCast = movieCast;
        this.movieReview = movieReview;
        this.moviePoster = moviePoster;
    }


    @Override
    protected Serializable pkVal() {
        return this.movieId;
    }

}
